package com.rboat.web.controller.blog;

import com.rboat.common.core.controller.BaseController;
import com.rboat.common.core.domain.AjaxResult;
import com.rboat.common.utils.ServletUtils;
import com.rboat.common.utils.StringUtils;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authc.AuthenticationException;
import org.apache.shiro.authc.UsernamePasswordToken;
import org.apache.shiro.subject.Subject;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 登录验证
 *
 * @author rboat
 */
@Controller
public class BlogLoginController extends BaseController {

    /**
     * 博客主页
     * @param request
     * @param response
     * @return
     */
    @GetMapping("/loginBlog")
    public String loginBlog(HttpServletRequest request, HttpServletResponse response) {
        return "/blog/main";
    }

    /**
     * 博客主页
     * @param request
     * @param response
     * @return
     */
    @RequestMapping("/blog/index")
    public String log_web(HttpServletRequest request, HttpServletResponse response) {
        return "/blog/index";
    }

}
